3
|
How do I change the control's border, using your EBN files
axStatusBar1.BeginUpdate();
axStatusBar1.VisualAppearance.Add(1,"c:\\exontrol\\images\\normal.ebn");
axStatusBar1.Appearance = (EXSTATUSBARLib.AppearanceEnum)0x1000000;
axStatusBar1.VisualAppearance.Add(4,"c:\\exontrol\\images\\border.ebn");
axStatusBar1.VisualAppearance.Add(5,"CP:4 1 1 -1 -1");
(axStatusBar1.GetOcx() as EXSTATUSBARLib.StatusBar).BackColorPanels = 0x5000000;
axStatusBar1.Format = "1,2,3,4,(5/6/7/8)";
axStatusBar1.Debug = true;
axStatusBar1.EndUpdate();
|
2
|
How do I remove the control's border
axStatusBar1.BeginUpdate();
axStatusBar1.Appearance = EXSTATUSBARLib.AppearanceEnum.None2;
axStatusBar1.VisualAppearance.Add(4,"c:\\exontrol\\images\\border.ebn");
axStatusBar1.VisualAppearance.Add(5,"CP:4 1 1 -1 -1");
(axStatusBar1.GetOcx() as EXSTATUSBARLib.StatusBar).BackColorPanels = 0x5000000;
axStatusBar1.Format = "1,2,3,4,(5/6/7/8)";
axStatusBar1.Debug = true;
axStatusBar1.EndUpdate();
|
1
|
How can I change the control's font
axStatusBar1.BeginUpdate();
axStatusBar1.VisualAppearance.Add(4,"c:\\exontrol\\images\\border.ebn");
axStatusBar1.VisualAppearance.Add(5,"CP:4 1 1 -1 -1");
(axStatusBar1.GetOcx() as EXSTATUSBARLib.StatusBar).BackColorPanels = 0x5000000;
stdole.IFontDisp f = new stdole.StdFont() as stdole.IFontDisp;
f.Name = "Verdana";
f.Size = 12;
axStatusBar1.Font = (f as stdole.IFontDisp);
axStatusBar1.Format = "\"static text\"[fg=255][a=17],11,22,(33/44)";
axStatusBar1.EndUpdate();
|